package com.example.demo.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import com.example.config.FeignConfiguration2;

@FeignClient(name = "xxx",configuration = FeignConfiguration2.class,url="http://localhost:8761")
public interface FeignClient2 {
	@GetMapping("/eureka/apps/{serviceName}")
	public String getServiceInfoByName(@PathVariable("serviceName") String serviceName);
}
